package pers.hubb.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pers.hubb.dao.ITUserDODao;
import pers.hubb.domain.TUserDO;
import pers.hubb.service.ITUserDOService;

import java.util.List;

@Service
public class ITUserDOServiceImpl implements ITUserDOService {
	@Autowired
	private ITUserDODao tuserDODao;

	/**
	 * 新增
	 *
	 * @param userDO
	 * @return
	 */
	@Override
	public int add(TUserDO userDO) {
		return this.tuserDODao.add(userDO);
	}

	/**
	 * 修改
	 *
	 * @param userDO
	 * @return
	 */
	@Override
	public int update(TUserDO userDO) {
		return this.tuserDODao.update(userDO);
	}

	/**
	 * 删除
	 *
	 * @param id
	 * @return
	 */
	@Override
	public int delete(Long id) {
		return this.tuserDODao.delete(id);
	}

	/**
	 * 查询
	 *
	 * @param id
	 * @return
	 */
	@Override
	public TUserDO findTUserDO(Long id) {
		return this.tuserDODao.findTUserDO(id);
	}

	/**
	 * 获取全部数据
	 *
	 * @return
	 */
	@Override
	public List<TUserDO> findTUserDOList() {
		return this.tuserDODao.findTUserDOList();
	}
}
